import Vue from 'vue'
import App from './App.vue'
import 'lib-flexible'
import router from './router'
import './assets/css/reset.css'
import './assets/icon/iconfont.css'
import './assets/icon/tim.css'
import './libs/element-ui'
import config from './config';
import tim from './libs/tim'
import TIM from 'tim-js-sdk'
import store from './store/index'
import VueWechatTitle from 'vue-wechat-title'
import VueCarousel from 'vue-carousel';
import directives from './libs/directives'
import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
directives.init(Vue);
Vue.use(VueCarousel);
Vue.use(VueWechatTitle);
Vue.use(VideoPlayer)

window.tim = tim;
window.TIM = TIM;
window.store = store;

Vue.prototype.$bus = new Vue(); // event Bus 用于无关系组件间的通信。
Vue.prototype.$config = config;
Vue.config.productionTip = false;
Vue.prototype.tim = tim;
Vue.prototype.TIM = TIM;
Vue.prototype.$store = store;
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app');
